package com.ptit.giaothong.tracnghiem;

import android.app.Activity;
import android.text.Html;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.ptit.giaothong.R;
import com.ptit.giaothong.Taskprocess;

public class Helptracngnhiem {
	private Activity activity;

	public Helptracngnhiem(Activity activity) {
		this.activity = activity;
	}

	public void init() {
		TracnghiemActivity.keypager = 1;
		Taskprocess.setHome(false);
		Taskprocess.setcontent("HƯỚNG DẪN CHƠI");

		Taskprocess.back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				activity.onBackPressed();

			}
		});
		activity.setContentView(R.layout.instruction);
		TextView title = (TextView) activity.findViewById(R.id.txt_hd_title);
		title.setText(R.string.lb_hd);
		TextView hd = (TextView) activity.findViewById(R.id.txt_hd);
		hd.setText(Html.fromHtml(activity.getString(R.string.detail_hd)));

	}
}
